package cn.wolfcode.crm.util;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

public abstract class RequestUtil {


        public static HttpServletRequest getRequest(){
            ServletRequestAttributes atts  = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
            HttpServletRequest request = atts.getRequest();
            return request;

        }

}
